package me.spring.cloud.common.components.rpc.request.header;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请求头
 *
 * @author luffy
 * @date 2018/7/18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonReqHeader implements ReqHeader {

  private static final long serialVersionUID = -189942917833075927L;
  /**
   * 唯一的id，用于避免重复提交
   */
  private String id;

  /**
   * 全局调用链id
   */
  private String chainId;

  /**
   * 时间戳
   */
  private Long timestamp = System.currentTimeMillis();

  private String sign;
}